html, body, div, p, canvas, button, a, ul, li, span {
    padding: 0;
    margin: 0;
    font-family: Arial, "微软雅黑";
}

.text-center {
    text-align: center;
}

button {
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    background-color: #4d90fe;
    color: #fff;
    border-radius: 5px;
    border: 1px solid #4d90fe;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button:active {
    background-color: #446db3;
    border: 1px inset #4d90fe;
}

button:disabled {
    cursor: no-drop !important;
    background: #ccc;
}

.cancelBtn {
    background: #f5f5f5;
    color: #666;
}

.cancelBtn:active {
    background-color: #e5e5e5;
}

.warningBtn {
    background-color: #8fa9d4;
}

button.block {
    width: 100%;
}

#game {
    position: relative;
    width: 1000px;
}

#board {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #edef92;
}

#seeds {
    position: absolute;
    top: 0;
    left: 0;
}

#seeds .seed {
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
}

#gameInfo {
    position: absolute;
    top: 80px;
    left: 680px;
    background-color: #f9f9f9;
    width: 220px;
    height: 430px;
    border: 6px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    padding: 20px;
}

#gameInfo ul.remain {
    list-style: none;
    font-size: 18px;
    color: #333;
}

#gameInfo .label {
    display: inline-block;
    width: 80px;
    text-align: center;
}

#gameInfo .num {
    display: inline-block;
    text-align: center;
    width: 80px;
    font-size: 120%;
}

#gameInfo ul.remain li {
    padding: 8px;
    margin-top: 10px;
    position: relative;
    background-color: #e0e0e0;
}

#gameInfo ul.remain li.mine {
    background: #b1d4b1;
}

#gameInfo ul.remain li.mine:before {
    content: '(我)';
    position: absolute;
    top: 13px;
    left: 69px;
    font-size: 12px;
    color: #c3490d;
}

#gameInfo h3 {
    color: #333;
    font-weight: 400;
    font-size: 20px;
}

#gameInfo h3 span {
    color: #f00;
}

#gameInfo .message {
    width: 100%;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #ccc;
    font-size: 24px;
    color: #4d90fe;
    margin-top: 10px;
}

#gameInfo div:last-of-type button {
    margin-top: 20px;
}

#alertBox {
    position: absolute;
    width: 1000px;
    height: 650px;
    top: 0;
    left: 0;
}

#mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.2;
    z-index: 999;
}

#alert {
    position: absolute;
    width: 420px;
    height: 250px;
    background: #f5f5f5;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: auto;
    overflow: hidden;
}

#alert h4 {
    margin: 0;
    background: #eee;
    padding: 10px;
    color: #666;
    font-weight: 400;
    font-size: 18px;
}

#alert .content {
    width: calc(100% - 40px);
    height: 110px;
    padding: 20px;
    word-break: break-all;
    overflow-y: auto;
    font-size: 18px;
}

#alert .btn button {
    padding: 8px 10px;
    margin-left: 0;
    margin-right: 10px;;
    float: right;
}

#alert .content a.rooms {
    font-size: 16px;
    text-decoration: none;
    color: #006666;
    border-bottom: 1px solid #ccc;
    padding: 1px 4px;
    display: inline-block;
    margin-bottom: 5px;
}

#alert .content a.rooms:hover {
    font-weight: 600;
}

#alert .content a.rooms:active {
    color: #4d90fe;
}

#alert .content span.mutted {
    font-size: 16px;
    color: #777;
    font-weight:200;
}

#logs {
    position: relative;
    top: 568px;
    left: 680px;
    width: 252px;
    height: 54px;
    background: #eee;
    padding: 10px;
    font-size: 12px;
    overflow-y: auto;
    border-radius: 3px;
    color: #333;
}

#logs p.error {
    color: #f00;
}

#logs p.game {
    color: #008800;
}